<template>
	<view>
		<logistics :packageFind="packageFind"></logistics>
	</view>
</template>

<script>
	import logistics from '@/components/xinyu-logistics/xinyu-logistics.vue'
	export default {
		data() {
			return {
				order_id:"",
				packageFind:{},
			}
		},
		components: { logistics },
		async onLoad(option) {
			this.order_id=option.id;
			let res=await this.getPackageFind(this.order_id)
			this.packageFind=res;
			// this.packageFind.index=1
			console.log(this.packageFind)
			
		},
		methods: {
			async getPackageFind(order_id){
				let token=uni.getStorageSync("token")
				const {data}=await this.$http({
					url:"/order/logs",
					header:{
						token
					},
					data:{
						order_id
					}
				})
				return data.data
			}
		}
	}
</script>

<style>

</style>
